<!-- mate start -->
<?php $this->load->view('assists/mate.php') ?>
<!-- mate end -->
<link rel="stylesheet"  href="<?=base_url('static/index/css/menu.css')?>" />
<link rel="stylesheet" href="<?=base_url('static/index/css/my_message.css')?>">
<title>我的消息列表</title>
<!-- header strat -->
<?php $this->load->view('assists/header.php') ?>
<!-- header end -->
	<div id="top-alert" class="fixed alert-success" style="display:none;">
    	<button class="close fixed" >×</button>
    	<p class="alert-content">这是内容</p>
    </div>
	<div id="user_center">
		<div class="user_center clearfix">
			<?php $this->load->view('assists/menu.php') ?>
			<div class="my_message">
				<div class="AdminHead">
					<h2>我的消息列表</h2>
				</div>
				<div class="message_list">
					<ul>
					<?php foreach ($message_list as $row): ?>
						<li class="clearfix">
							<div class="user_logo_message">
								<a href="<?php if($this->session->userdata('uid')==$row['suid']){echo site_url("User_center");}else{echo site_url('User_info/index/'.$row['suid']);} ?>">
									<img src="<?=base_url($row['logo'])?>" />
								</a>
							</div>
							<div class="my_message_content">
								<div class="my_logo_time clearfix">
									<div class="username"><?=$row['username']?></div>
									<div class="time"><?=date("Y-m-d H:i:s",$row['sendtime'])?></div>
								</div>
								<div class="my_message_content_bottom clearfix">
									<div class="my_message_content_left">
										<p>
											<a href="
												<?php
													if($row['suid']==$this->session->userdata('uid')){
														$result = $row['ruid'];
													}else{
														$result = $row['suid'];
													}
													echo site_url('Message/message_content/'.$result);
												?>
											" target="_blank">
											<?php
												if(mb_strlen($row['content'],"utf8")>10){
													echo mb_substr($row['content'],0, 10).'....';
												}
												else{
													echo $row["content"];
												}
											?>
											</a>
										</p>
									</div>
									<div class="message_status_logo">
										<?php if($row['lookStatus']==0){?>
										<img src="<?=base_url('static/index/images/resizeApi1.png')?>" />
										<?php }else{ ?>
										<img src="<?=base_url('static/index/images/resizeApi.png')?>" />
										<?php } ?>
									</div>
								</div>
							</div>
						</li>
					<?php endforeach; ?>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div id="page">
    	<div class="page_content clearfix">
        	共 <?=$this->paging->page_count?> 条记录
			<div class="page_content_left">
                <?php $this->paging->create();?>
            </div>
        </div>
   	</div>
	
	<!-- footer start -->
   	<?php $this->load->view('assists/footer.php') ?>
   	<!-- footer end -->
   	
</body>
</html>